package com.example.demo;

import com.mongodb.client.MongoDatabase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class Tool {
    public static Environment env;

    public static MongoDatabase db;

    @Autowired
    public void test(Environment environment,MongoDatabase mongoDatabase){
        env = environment;
        db = mongoDatabase;
    }

}
